package com.ysh.spring.dao.impl;



import com.ysh.spring.dao.UserDao;
import com.ysh.spring.dao.UserDao;
import org.springframework.stereotype.Component;

/**
 * Created by Jackiechan on 2022/8/26 9:04
 *
 * @author Jackiechan
 * @version 1.0
 * @since 1.0
 */
@Component("userDao")//告诉spring帮我们创建这个对象,id默认就是类名首字母小写,想自己定义id只要在注解内写id就行了
public class UserDaoImpl implements UserDao {
    @Override
    public void addUser() {
        System.err.println("UserDaoImpl中的方法addUser 执行了--->");
    }
}
